package org.jeecg.modules.wlhy.hytaxpersonalincome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wlhy.hytaxpersonalincome.entity.HyTaxPersonalincome;
import org.jeecg.modules.wlhy.hytaxpersonalincome.entity.YssrTotalDTO;

/**
 * @Description: 个人所得税详细信息
 * @Author: duanlikao
 * @Date:   2021-03-19
 * @Version: V1.0
 */
public interface HyTaxPersonalincomeMapper extends BaseMapper<HyTaxPersonalincome> {

    /**
     * 统计司机每月已经个税 累计已缴税额
     * @param fwfuuid
     * @param startMonth
     * @param endMonth
     * @return
     */
    YssrTotalDTO getTaxPersonalincomeByFwfuuid(
            @Param("fwfuuid") String fwfuuid,
            @Param("startMonth") String startMonth,
            @Param("endMonth")String endMonth);

    YssrTotalDTO getYssrTotalBySl(
            @Param("tjsl") Double tjsl,
            @Param("startTime") String startTime,
            @Param("endTime")  String endTime);
    /**
     * 按税率统计司机每月已经个税 累计已缴税额
     * @param tjsl
     * @param startMonth
     * @param endMonth
     * @return
     */
    YssrTotalDTO getBqybtseTotalBySl(
        @Param("tjsl") Double tjsl,
        @Param("startMonth") String startMonth,
        @Param("endMonth")String endMonth);

    YssrTotalDTO getNowBqybtseTotalBySl(
            @Param("tjsl") Double tjsl,
            @Param("startTime") String startTime,
            @Param("endTime")  String endTime);
}
